import * as marked from 'marked'
import * as highlight from 'highlight.js'

marked.setOptions({
	renderer: new marked.Renderer(),
	gfm: true,
	tables: true,
	breaks: true,
	pedantic: false,
	smartLists: true,
	smartypants: false,
	highlight(code: any) {
		return highlight.highlightAuto(code).value
	},
})

export default marked
